﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Left.aspx.cs" Inherits="AcctrueWMS.Web.Left" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>爱创PMS系统</title>
    <link href="res/styles/css/Left.css" rel="stylesheet" type="text/css" />
    <link href="res/styles/css/right.css" rel="stylesheet" type="text/css" />
    <link href="res/styles/css/common.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="res/styles/JQuery/UI/zTreeStyle.css" type="text/css" />
    <script src="res/scripts/JQuery/jquery-1.5.1.js" type="text/javascript"></script>
    <script src="res/scripts/JQuery/UI/jquery.ztree-2.6.beta.min.js" type="text/javascript"></script>
    <script src="res/scripts/wmsWaiting.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function ShowMenu(menuNo) {
            var count = document.getElementById('hfMenuCount').value;
            
            for (var i = 1; i <= count; i++) {
                document.getElementById("menuTD" + i).style.height = "auto";
                document.getElementById("submenu" + i).style.display = "none";
            }
            document.getElementById("menuTD" + menuNo).style.height = "100%";
            document.getElementById("submenu" + menuNo).style.display = "block";
        }
        //        var tempObject;
        function select(url, obj) {
//            debugger;
            $('#main', parent.document.body).attr('src', url).end();
            $(obj).addClass('selected').attr('background', 'url(res/images/ico8.gif) no-repeat left center;').end();
            $(obj).parent().siblings().children().removeClass('selected').end();
            $(obj).parent().parent().parent().parent().siblings().children().children().children().children().removeClass('selected').end();
            var mapBar = $('#mapBar', parent.document.body)[0];
            
            var barHref = "SiteMapBar.htm"; //decodeURI(mapBar.src);
            var ppText = $(obj).parent().parent()[0].previousSibling.innerText;
            barHref += '?barMsg=' + ppText + '>' + obj.innerText;
            //后期完善
//            if (barHref.indexOf('?') > 0 && barHref.indexOf('=') > 0) {
//                debugger;
//                var newBarMsg = "";
//                var oldBarMsg = barHref.substring(barHref.indexOf('?'), barHref.length);
//                if (barHref.indexOf(obj.innerText) > 0) {
//                    newBarMsg = oldBarMsg + "," + ppText + '>' + obj.innerText;
//                    barHref = barHref.substring(0, barHref.indexOf('?')) + newBarMsg;
//                }
//                else {
//                    return;
//                }
//            }
//            else {
//                barHref += '?barMsg=' + ppText + '>' + obj.innerText;
//            }
            $('#mapBar', parent.document.body).attr('src', encodeURI    (barHref)).end();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" style="margin: 0px; padding: 0px;">
    <%=RenderTree() %>
    </form>
</body>
</html>
